package com.gmail.liulijuan;

public class HelloWord {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		HelloWord hw = new HelloWord();
		int res0 = Integer.parseInt(args[0]);
		int res2 = Integer.parseInt(args[2]);
		
		if (args[1].equals("+")) {
			System.out.println(args[0] + args[1] + args[2]);
			System.out.println(hw.plus(res0, res2));
		} else {
			System.out.println(args[0] + args[1] + args[2]);
			System.out.println(hw.sub(res0, res2));
		}

	}

	int plus(int arg1, int arg2) {
		int result = arg1 + arg2;
		return result;
	}

	int sub(int arg1, int arg2) {
		int result = arg1 - arg2;
		return result;
	}
}
